package com.loong.member.service.impl;

import com.loong.common.dubbo.service.AbstractService;
import com.loong.common.rest.rpc.RPCResponse;
import com.loong.member.handler.CartHandler;
import com.loong.member.service.ICartService;
import com.loong.member.service.IMemberAddressService;
import org.apache.dubbo.config.annotation.DubboService;

import javax.annotation.Resource;

/**
 * @Description:
 * @Author: LiuQun
 * @Date: 2021/1/8 14:15
 */
@DubboService(timeout = 5000,interfaceClass = ICartService.class)
public class CartServiceImpl extends AbstractService implements ICartService {

    @Resource
    private CartHandler cartHandler;

    @Override
    public RPCResponse updatePaidCartStatus(Long cartId) {
        return serviceExecutor.execute(() -> cartHandler.rpcUpdatePaidCart(cartId));
    }
}
